package com.workerhelping.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.workerhelping.dao.WorkerDao;
import com.workerhelping.dto.WorkerInfoDTO;
import com.workerhelping.dto.WorkerStatusInfoDTO;
import com.workerhelping.po.Record;
import com.workerhelping.po.Worker;
import com.workerhelping.service.WorkerService;
import com.workerhelping.vo.WorkerPortalVO;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

@Service
public class WorkerServiceImpl extends ServiceImpl<WorkerDao, Worker> implements WorkerService {

    @Override
    public Worker getWorkerByPhoneNum(String phoneNumber) {
        QueryWrapper<Worker> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("phone_number", phoneNumber);
        return baseMapper.selectOne(queryWrapper);
    }




}
